package com.ruibang.glass.quality.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.quality.domain.req.DefectReq;
import com.ruibang.glass.quality.entity.Defect;
import com.teaming.cloud.framework2.common.model.ResultBody;

import java.util.List;

/**
 * @Author: songJinKang
 * @CreateTime: 2023-08-30  14:17
 * @Description: TODO
 * @Version: 1.0
 */

public interface DefectService extends IService<Defect> {

    ResultBody queryDefect(DefectReq defectReq);

    List<Defect> getByDefectGroupId(List<String> defectGroupIds);

    ResultBody insert(Defect defect);

    ResultBody getDefectList();

    List<Defect> getByGroupId(String groupId);

    void deleteByDefectGroupId(String defectGroupId);
}
